﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TaxiOnline.DAL.Abstract;

namespace TaxiOnline.DAL.Models
{
    public class Vehicle: Entity
    {
        public string Color { get; set; }
        public string Mark { get; set; }
        public string Number { get; set; }
        public int Capacity { get; set; }

        public TypeOfVehicle Type { get; set; }

        public Vehicle() {
            Id = -1;
            Color = String.Empty;
            Mark = String.Empty;
            Number = String.Empty;
            Capacity = 0;
            Type = new TypeOfVehicle();
        }

        public Vehicle(int id, string color, string mark,
            string number, int capacity, TypeOfVehicle type) {
                Id = id;
                Color = color;
                Mark = mark;
                Number = number;
                Capacity = capacity;
                Type = type;
        }


    }
}
